package com.test.ws.s1.service.imp;

import com.test.ws.s1.bean.Acl_role;
import com.test.ws.s1.bean.Acl_user_role;
import com.test.ws.s1.mapper.Acl_roleDao;
import com.test.ws.s1.service.Acl_roleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class Acl_roleServiceImp implements Acl_roleService {
    @Autowired
    private Acl_roleDao acl_roleDao;

    @Override
    public ArrayList<Acl_role> selectAcl_role(Acl_role acl_role, int id) {
        return acl_roleDao.selectAcl_role(acl_role, id);
    }

    @Override
    public ArrayList<Acl_role> selectAllAcl_role() {
        return acl_roleDao.selectAllAcl_role();
    }

    @Override
    public int deleteAcl_role(Acl_user_role aclRole) {
        return acl_roleDao.deleteAcl_role(aclRole);
    }

    @Override
    public int insertAcl_role(Acl_user_role aclRole) {
        return acl_roleDao.insertAcl_role(aclRole);
    }
}
